<script setup name="Button">
import {baseStore} from "@/store/baseStore.js";

let lock = JSON.parse(import.meta.env.ENV_AUTHORITYBTN_SHOW)
const props = defineProps({
    path: {
        type: String,
        default: null
    },
})
let bs = baseStore()
let {menuState} = storeToRefs(bs)
</script>

<template>
    <template v-if="menuState.button.indexOf(props.path) !== -1 || lock">
        <slot></slot>
    </template>
</template>

<style scoped>

</style>